package com.hospital.demo.service.impl.jiajinpeng;

import com.hospital.demo.mapper.jiajinpeng.BedsMapper;
import com.hospital.demo.model.jiajinpeng.Beds;
import com.hospital.demo.service.jiajinpeng.BedsSer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BedsImpl implements BedsSer {
    @Autowired
    private BedsMapper bedsMapper;
    @Override
    public List<Beds> Selectallbeds() {
        return bedsMapper.selectAllbeds();
    }

    @Override
    public List<Beds> SelectByStateBeds(String state) {
        return bedsMapper.selectBystate(state);
    }

    @Override
    public int insertBeds(Beds beds) {
        return bedsMapper.insertBed(beds);
    }

    @Override
    public int updateBeds(Beds beds) {
        return bedsMapper.updateBed(beds);
    }
}
